package com.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by BIG on 2017/9/13.
 */
@Controller
public class HelloController {
    public HelloController(){
        System.out.println("hello");
    }
    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        System.out.println("get");
        return "/index";
    }
}
